import java.text.DecimalFormat;
import java.util.Iterator;

public class Tools {
    public static float passTime = 0f ;
    DecimalFormat dec2 = new DecimalFormat("#.00");
    float average (){
        float ave = 1.0f;
        if (Main. i!= 0) {
            ave = passTime / (float) Main.i;
        }
        return ave;
    }
    float bpmCounter(){
        float bpm;
        bpm = Float.parseFloat(dec2.format(60/average()));
        return bpm;
    }
}
